package com.hylanda.va.entity.dict;


/** 
 * @author zhangy
 * @E-mail:blackoon88@gmail.com 
 * @qq:846579287
 * @version created at：2018年5月21日 下午2:35:22 
 * note
 */
public enum ClockingInStatus {
	NORMAL("正常",1){},
	LATE("迟到",2){},
	LEAVEEARLY("早退",3),
	ONBUSINESS("出差",4),
	LEAVEAM("上午请假",5),
	LEAVEPM("下午请假",6),
	LEAVEALL("全天请假",7),
	;
	
	private String name;
	private int value;
	private ClockingInStatus(String name,int value){
		this.name=name;
		this.value=value;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public static ClockingInStatus[] getAllClockingInStatus(){
		return new ClockingInStatus[]{NORMAL,LATE,LEAVEEARLY,ONBUSINESS,LEAVEAM,LEAVEPM,LEAVEALL};
	}
//	public static int getValue(String name) {
//		int v=0;
//		for(EnableType rm: EnableType.getAllEnabletype()){
//			if(rm.getName().equals(name)){
//				v=rm.getValue();
//				break;
//			}
//		}
//		return v;
//	}
}
